/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package services.impl;

import domain.Orders;
import domain.Products;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import services.interfaces.IOrderServices;

/**
 *
 * @author amega
 */
@Stateless
@LocalBean
public class OrdersServices extends GenericServiceImpl<Orders> implements IOrderServices{
    
     @PersistenceContext(unitName="RGHPU")
    private EntityManager em;
    
    public OrdersServices(){
        super(Orders.class);
    }
    
    @Override
    protected EntityManager getEntityManager() {
        return em;
    }
    
}
